package org.jypj.dev.vo;

/**
 * Created by ChenYu on 2017-02-23.
 */
public class SeasonVo {

    private int num;//季节编号
    private String yearStr;//年份信息
    private String name;//季节名称

    public String getYearStr() {
        return yearStr;
    }

    public void setYearStr(String yearStr) {
        this.yearStr = yearStr;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SeasonVo seasonVo = (SeasonVo) o;

        if (getNum() != seasonVo.getNum()) return false;
        return getYearStr().equals(seasonVo.getYearStr());
    }

    @Override
    public int hashCode() {
        int result = getNum();
        result = 31 * result + getYearStr().hashCode();
        return result;
    }

    @Override
    public String toString() {
        return "SeasonVo{" +
                "num=" + num +
                ", yearStr='" + yearStr + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
